//
//  SINAStuActivityTargetModel.m
//  sinashebao
//
//  Created by  androidlongs on 2018/1/23.
//  Copyright © 2018年  androidlongs. All rights reserved.
//

#import "SINAStuActivityTargetModel.h"

@implementation SINAStuActivityTargetModel
-(instancetype)initWithDict:(NSDictionary *)result{
    if (self=[super init]) {
        //[NSString stringWithFormat:@"%@",result[@"name"]];
        if (result!=nil) {
            _title=[NSString stringWithFormat:@"%@",result[@"title"]];
            if (_title==nil||_title.length==0||[_title isEqualToString:@"(null)"]) {
                _title=[NSString stringWithFormat:@"%@",result[@"targettitle"]];
            }
            
            _createUserUid=[NSString stringWithFormat:@"%@",result[@"createuuid"]];
            _startTime=[result[@"starttime"] integerValue];
            _endTime=[result[@"endtime"]integerValue];
            _uuid=[NSString stringWithFormat:@"%@",result[@"uuid"]];
            _status=[result[@"status"]integerValue];
            _plantime=result[@"plantime"];
            _useTime= [result[@"pausetime"] integerValue];
            _pauseendtime =[result[@"pauseendtime"] integerValue] ;
        }
    }
    return self;
}
+(instancetype)userWithDict:(NSDictionary *)dict{
    return [[self alloc] initWithDict:dict];
}
@end
